<html>
<head>
	<title>really peer connection</title>
	<link rel="stylesheet" type="text/css" href="./css/main.css">
	<script language="javascript" type="text/javascript">
		function gotoNextPage(){
			var roomid = document.querySelector('input#room');
			if(roomid.value === null || roomid.value === ''){
				alert('roomid is null');
			}else {
				window.location.href="room.html?room=" + roomid.value;
			}
		}
	</script>
</head>
<body>
	<table align="center">
		<tr>
			<td>
				<div>
					<label>roomid:</label>
					<input type="input" id="room">
				</div>
			</td></tr>
		</tr>
		<tr>
			<td>
				<div>
					<button id="join" onclick="gotoNextPage()">join</button>
				</div>
			</td>
		</tr>	
	</table>
</body>
</html>